//
//  ChangeInfoDialog.h
//  ShowHome
//
//  Created by mac on 13-7-18.
//  Copyright (c) 2013年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ModalView.h"
#import "PageShowView.h"
#import "AutomationCell.h"
#import "MeterListCell.h"
#import "DeviceListCell.h"
#import "SceneArmBaseTableViewCell.h"

@class ChangeInfoDialog, RoomItemModel;

@protocol changeDataDicDelegate <NSObject>

@optional
- (void)changeDataDic:(NSDictionary *)dic; //automation
- (void)changeMeterDic:(NSDictionary *)dic;//meter
- (void)changeRemoteDic:(NSDictionary *)dic;//remote
- (void)changeCameraDic:(NSDictionary *)dic;//ipcamera

- (void)changeInfoDialogWithData:(NSDictionary *)dic changeToRoom:(RoomItemModel *)roomData;

@end

@interface ChangeInfoDialog : ModalView<UITextFieldDelegate>
{
    NSArray *imgs;
    PageShowView *pageShowView;
    int tag;
    NSString *ipUrl;
}

-(void)initView;

@property (nonatomic,retain) NSDictionary *data;
@property (nonatomic,retain) AutomationCell *cell;
@property (nonatomic,retain) MeterListCell *mCell;
@property (nonatomic,retain) DeviceListCell *cCell;
@property (nonatomic,assign) IBOutlet UIScrollView *scrollView;
@property (nonatomic,assign) IBOutlet UITextField *textName;
@property (nonatomic,assign) IBOutlet UIButton *btnRoomSelect;

@property (nonatomic, retain) id<changeDataDicDelegate> delegate;

- (void)setData:(NSDictionary *)_data cell:(AutomationCell *)_cell;
- (void)setMeterData:(NSDictionary *)_data cell:(MeterListCell *)_cell;
- (void)setCameraData:(NSDictionary*)_data cell:(DeviceListCell*)_cell;
- (void)setRemoteData:(NSDictionary*)_data cell:(DeviceListCell*)_cell;
- (void)setSceneArmDData:(NSDictionary *)_data cell:(SceneArmBaseTableViewCell *)_cell;
//- (void)setata:(ArmModel *)_data cell:(ArmListViewCell *)_cell;

- (void)setOriginalRoomData:(RoomItemModel *)roomData;
- (void)setRoomDataList:(NSArray *)list;
@end
